package request

type ShopAdd struct {
	Name  string  `json:"name" form:"name" binding:"required"`
	Price float64 `json:"price" form:"price" binding:"required"`
	Info  string  `json:"info" form:"info" binding:"required"`
	Num   int     `json:"num" form:"num" binding:"required"`
}

type ShopUpdate struct {
	Id    int64   `json:"id" form:"id" binding:"required"`
	Name  string  `json:"name" form:"name" binding:"required"`
	Price float64 `json:"price" form:"price" binding:"required"`
	Info  string  `json:"info" form:"info" binding:"required"`
	Num   int     `json:"num" form:"num" binding:"required"`
}

type ShopList struct {
	Id     int64   `json:"id" form:"id"`
	BoosId int64   `json:"boos_id" form:"boosId"`
	Name   string  `json:"name" form:"name" `
	Price  float64 `json:"price" form:"price"`
	Info   string  `json:"info" form:"info"`
	Num    int     `json:"num" form:"num"`
}

type ShopPage struct {
	Id       int64   `json:"id" form:"id" `
	Name     string  `json:"name" form:"name" `
	Price    float64 `json:"price" form:"price" `
	Info     string  `json:"info" form:"info" `
	Num      int     `json:"num" form:"num" `
	BoosId   int64   `json:"boos_id" form:"boosId" `
	Page     int     `json:"page" form:"page" `
	PageSize int     `json:"page_size" form:"page_size" `
}

type ShopDetail struct {
	Id        int64   `json:"id" form:"id"`
	CommentId int64   `json:"comment_id" form:"comment_id"`
	Name      string  `json:"name" form:"name" `
	Price     float64 `json:"price" form:"price"`
	Info      string  `json:"info" form:"info"`
	Num       int     `json:"num" form:"num"`
}
